package com.edu.bhu.admin.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 订单对象 cos_order
 * 
 * @author wangjinao
 * @date 2022-03-17
 */
public class CosOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单唯一标识 */
    private Long orderId;

    /** 订单号 */
    @JsonSerialize(using = ToStringSerializer.class)
    @Excel(name = "订单号")
    private Long orderNum;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 下单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date genDate;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal price;

    /** 支付状态 0未支付 1已支付 */
    @Excel(name = "支付状态 0未支付 1已支付")
    private Long payStatus;

    /** 删除标志 0代表存在 2代表删除 */
    private Long delFlag;

    /** 订单状态 0正常 2关闭 */
    @Excel(name = "订单状态 0正常 2关闭")
    private Long status;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setGenDate(Date genDate) 
    {
        this.genDate = genDate;
    }

    public Date getGenDate() 
    {
        return genDate;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPayStatus(Long payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Long getPayStatus() 
    {
        return payStatus;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNum", getOrderNum())
            .append("userId", getUserId())
            .append("genDate", getGenDate())
            .append("price", getPrice())
            .append("payStatus", getPayStatus())
            .append("delFlag", getDelFlag())
            .append("status", getStatus())
            .toString();
    }
}
